<?php

require_once 'db.php';

class keyword extends db {

    public function select() {
        $this->connect();
        $query = "SELECT*FROM keywords";
        $keywords = $this->query($query);
        return $keywords;
    }

    public function greater_10() {
        $this->connect();
        $query = "SELECT * FROM keywords";
        $keyworsds = $this->query($query);
        foreach ($keyworsds as $keyworsd) {
            if (strlen($keyworsd["name"]) > 10) {
                echo $keyworsd["id"] . " ";
                echo $keyworsd["name"] . "<br>";
            }
        }
    }

}